package com.ruoyi.quartz.service.impl;

import com.ruoyi.quartz.domain.TbListData;
import com.ruoyi.quartz.mapper.TbListDataMapper;
import com.ruoyi.quartz.service.ITbListDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 淘宝房源Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
@Service
public class TbListDataServiceImpl implements ITbListDataService 
{
    @Autowired
    private TbListDataMapper tbListDataMapper;

    /**
     * 查询淘宝房源
     * 
     * @param id 淘宝房源主键
     * @return 淘宝房源
     */
    @Override
    public TbListData selectTbListDataById(Long id)
    {
        return tbListDataMapper.selectTbListDataById(id);
    }

    /**
     * 查询淘宝房源列表
     * 
     * @param tbListData 淘宝房源
     * @return 淘宝房源
     */
    @Override
    public List<TbListData> selectTbListDataList(TbListData tbListData)
    {
        return tbListDataMapper.selectTbListDataList(tbListData);
    }

    /**
     * 新增淘宝房源
     * 
     * @param tbListData 淘宝房源
     * @return 结果
     */
    @Override
    public int insertTbListData(TbListData tbListData)
    {
        return tbListDataMapper.insertTbListData(tbListData);
    }

    /**
     * 修改淘宝房源
     * 
     * @param tbListData 淘宝房源
     * @return 结果
     */
    @Override
    public int updateTbListData(TbListData tbListData)
    {
        return tbListDataMapper.updateTbListData(tbListData);
    }

    /**
     * 批量删除淘宝房源
     * 
     * @param ids 需要删除的淘宝房源主键
     * @return 结果
     */
    @Override
    public int deleteTbListDataByIds(Long[] ids)
    {
        return tbListDataMapper.deleteTbListDataByIds(ids);
    }

    /**
     * 删除淘宝房源信息
     * 
     * @param id 淘宝房源主键
     * @return 结果
     */
    @Override
    public int deleteTbListDataById(Long id)
    {
        return tbListDataMapper.deleteTbListDataById(id);
    }

    @Override
    public int batchInsert(List<TbListData> dataList) {
        return tbListDataMapper.batchInsert(dataList);
    }

    @Override
    public List<Long> existsDbData(List<Long> collect) {
        return tbListDataMapper.existsDbData(collect);
    }

    @Override
    public List<TbListData> selectTbListDataListByBusinessId(TbListData tbListData, boolean isHistory) {
        return tbListDataMapper.selectTbListDataListByBusinessId(tbListData, isHistory);
    }
}
